//
//  WXShiTingViewController.m
//  xhnApp
//
//  Created by Apple on 2017/7/27.
//  Copyright © 2017年 voc. All rights reserved.
//

#import "WXShiTingViewController.h"

#import <WXCloudModuleCategories/UIView+UIStyle.h>
#import <WXCloudModuleMediator/WXMediator+WXMediatorModuleVideoActions.h>
#import <WXCloudModuleBaseView/WXNavigationBaseView.h>
#import <WXCloudModuleBaseConfig/WXSystemBaseDefine.h>

@interface WXShiTingViewController ()<UINavigationControllerDelegate>

@property (nonatomic,strong) WXNavigationBaseView *navigationView;

@property (nonatomic,strong) UIView *visibleView;

@property (nonatomic, strong) UIViewController *videoViewController;

@property (nonatomic, copy) NSArray *titleList;
@end

@implementation WXShiTingViewController

#pragma mark - life cycle
- (void)viewDidLoad {
    [super viewDidLoad];
    [self initialize];
}

-(void)initialize
{
    self.view.backgroundColor=[UIColor whiteColor];
    [self.view addSubview:self.videoViewController.view];
    [self.view addSubview:self.navigationView];
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
}

-(void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
}

- (UIViewController *)videoViewController
{
    if (_videoViewController == nil) {
        _videoViewController = [[WXMediator sharedInstance] WXMediator_showVideoHomeViewController];
        _videoViewController.view.backgroundColor=[UIColor whiteColor];
        _videoViewController.view.frame = CGRectMake(0, 64, WXScreenWidth, WXScreenHeight-64-50);
    }
    return _videoViewController;
}

-(WXNavigationBaseView *)navigationView{
    
    if (_navigationView==nil) {
        _navigationView = [[WXNavigationBaseView alloc] initWithTitle:@"视频"];
        [_navigationView addNormalShadow];
    }
    return _navigationView;
}

@end
